@extends('layout.admin')

@section('title')
    <title>
        用户修改
    </title>
@endsection

@section('content')
<link href="/admins/css/style.css" rel='stylesheet' type='text/css' />

<link href='/admins/css/5674418950cb483f86c49c1098a98f02.css' rel='stylesheet' type='text/css'>
<link href='/admins/css/003e7f0f0b24463294d0f188030afe8a.css' rel='stylesheet' type='text/css'>
<script type="application/x-javascript"> 
	addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>


<div class="login-01">
	@if (count($errors) > 0)
    	<div class="alert alert-danger" style="background:pink">
    		出错啦!!!
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif 

	<form action="/user/{{$user->id}}" method="post" enctype="multipart/form-data">
		<ul>
			<li class="first">
				<a class=" icon user" href="#"></a>
				<input type="text" onblur="if (this.value == '') {this.value = 'Name';}" onfocus="this.value = '';" name="username" value="{{$user['username']}}" class="text">
				<div class="clear"></div>
			</li>

			<li class="first">
				<a class=" icon email" href="#"></a>
				<input type="text" onblur="if (this.value == '') {this.value = 'Email';}" onfocus="this.value = '';" name="email" value="{{$user['email']}}" class="text">
				<div class="clear"></div>
			</li>

			<li class="first">
				<a class=" icon user" href="#"></a>
				<input type="text" onblur="if (this.value == '') {this.value = 'chengwei';}" onfocus="this.value = '';" name="chengwei" value="{{$user['chengwei']}}" class="text">
				<div class="clear"></div>
			</li>

			<li class="second">
			<a class=" icon msg" href="#"></a>
			<textarea onblur="if (this.value == '') {this.value = 'Comments';}" onfocus="this.value = '';" name="Comments" value="{{$user['Comments']}}">Comments</textarea>
			<div class="clear"></div>
			</li>
		</ul>
		<div class="clear">
			{{csrf_field()}}
			<input type="hidden" name="_method" value="put">
			<input type="submit" value="Submit" onclick="myFunction()">
		</div>
	</form>
</div>
@endsection